package cn.zc.curriculum.service.service;

import cn.tools.core.VO.PageVO;
import cn.zc.curriculum.entity.Dto.InterfaceManagerDto;
import cn.zc.curriculum.entity.InterfaceManager;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author keno
 * @since 2022-02-19
 */
public interface InterfaceManagerService extends IService<InterfaceManager> {

    /**
     * 创建数据
     * @param interfaceManagerDto
     */
    void createInterfaceManager(InterfaceManagerDto interfaceManagerDto);

    /**
     * 修改数据
     * @param interfaceManagerDto
     */
    void uploadInterfaceManager(InterfaceManagerDto interfaceManagerDto);

    /**
     * 删除数据
     * @param id
     */
    void deleteInterfaceManager(String id);

    /**
     * 根据条件查询数据
     * @param id
     * @return
     */
    List<InterfaceManagerDto> findInterfaceManager(PageVO pageVO,String id, Integer type);


    /**
     * 查询出所有轮播图，目录，以及友链
     * @return
     */
    Map<String, List<InterfaceManagerDto>> findAllInterfaceManager();
}
